package com.baosight.sczx.zm.cd.service;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.baosight.iplat4j.core.ei.EiBlock;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.core.spring.SpringApplicationContext;
import com.baosight.iplat4j.dao.Dao;
import com.baosight.sczx.common.zm.basetools.StaticTools;
import com.baosight.sczx.zm.cd.domain.ZMCDDirectory;
public class CDBlocks {

	private static Dao dao = (Dao)SpringApplicationContext.getBean("dao");

	/**
	 * DirBlock--文档目录
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock getDirBlock(){
		EiBlock block=new EiBlock("cmes.cd.dir");
		
		EiColumn col=new EiColumn("dirName");
		col.setType("C");
		block.addMeta(col);
		
		col=new EiColumn("dirCode");
		col.setType("C");
		block.addMeta(col);
		@SuppressWarnings("unchecked")
		List<ZMCDDirectory> _result = dao.query("ZMCDDirectory.query",new HashMap());
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
    	_map=new HashMap<String, String>();
    	_map.put("dirName","公共目录");
    	_map.put("dirCode","public");
    	_list.add(_map);
    	_map=new HashMap<String, String>();
    	_map.put("dirName","指定目录");
    	_map.put("dirCode","special");
    	_list.add(_map);
        for(int i=0;i<_result.size();i++){
        	ZMCDDirectory _temp = _result.get(i);
        	_map=new HashMap<String, String>();
        	_map.put("dirName",_temp.getFdDirName());
        	_map.put("dirCode",_temp.getFdKeyId());
        	_list.add(_map);
        }
        block.addRows(_list);
		return block;
	}
	/**
	 * EngineeringBlock--是否重点工程
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetKeyProject(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.keyProject");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		if(isAll) {
			_map = new HashMap<String, String>();
			_map.put("value", "");
			_map.put("display", "");
			_list.add(_map);
		}
		_map = new HashMap<String, String>();
		_map.put("value", "1");
		_map.put("display", "是");
		_list.add(_map);
		_map = new HashMap<String, String>();
		_map.put("value", "0");
		_map.put("display", "否");
		_list.add(_map); 
		block.setRows(_list);
		return block;
	}
	/**
	 * EngineeringBlock--数据类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetCategory(){
		EiBlock block = new EiBlock("cmes.cs.category");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		
        _map = new HashMap<String, String>();
        _map.put("value", "$faceRoadway");
        _map.put("display", "工作面巷道");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "$unit");
        _map.put("display", "施工部门");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "$category");
        _map.put("display", "工程类别");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "$specialFund");
        _map.put("display", "专项资金");
        _list.add(_map);
		 
		block.setRows(_list);
		return block;
	}
	/**
	 * EngineeringBlock--工程类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetEngineeringType(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.engineeringType");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		if(isAll) {
			_map = new HashMap<String, String>();
			_map.put("value", "");
			_map.put("display", "");
			_list.add(_map);
		} 
        _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "采煤工程");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "掘进工程");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "通防工程");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "3");
        _map.put("display", "其他工程");
		_list.add(_map); 
		block.setRows(_list);
		return block;
	}
	/**
	 * EngineeringBlock--采煤类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetEngineeringClassCM(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.engineeringClass");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		if(isAll) {
			_map = new HashMap<String, String>();
			_map.put("value", "");
			_list.add(_map);
		} 
        _map = new HashMap<String, String>();
        _map.put("value", "综采");
        _list.add(_map);

//        _map = new HashMap<String, String>();
//        _map.put("value", "连采");
//        _list.add(_map);

//        _map = new HashMap<String, String>();
//        _map.put("value", "机采");
//        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "炮采");
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	/**
	 * EngineeringBlock--掘进类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetEngineeringClassJJ(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.engineeringClass");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		if(isAll) {
			_map = new HashMap<String, String>();
			_map.put("value", "");
			_list.add(_map);
		}   

        _map = new HashMap<String, String>();
        _map.put("value", "开拓");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "回采");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "准备");
        _list.add(_map);
        
        _map = new HashMap<String, String>();
        _map.put("value", "延伸");
        _list.add(_map);
		 
		block.setRows(_list);
		return block;
	}
	/**
	 * EngineeringBlock--通防类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetEngineeringClassTF(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.engineeringClass");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		if(isAll) {
			_map = new HashMap<String, String>();
			_map.put("value", "");
			_list.add(_map);
		}   
        _map = new HashMap<String, String>();
        _map.put("value", "打钻");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "抽采");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "管路安装");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "水力冲孔");
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	/**
	 * EngineeringBlock--其它类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetEngineeringClassQT(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.engineeringClass");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		if(isAll) {
			_map = new HashMap<String, String>();
			_map.put("value", "");
			_list.add(_map);
		}   

        _map = new HashMap<String, String>();
        _map.put("value", "巷修");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "按拆");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "零星");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "喷浆");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "卧底");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "其他");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}

	/**
	 * DataInterfaceBlock--状态
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetStatusBlock(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.status");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
        if (isAll)
        {
        	 _map = new HashMap<String, String>();
             _map.put("value", "");
             _list.add(_map);
        }
        _map = new HashMap<String, String>();
        _map.put("value", "停用");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "在用");
        _list.add(_map); 
		 
		block.setRows(_list);
		return block;
	}
	/**
	 * DataInterfaceBlock--接口类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetInterfaceBlock(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.dataInterface");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _map.put("display", "");
            _list.add(_map);
        }
        _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "iHistory");
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	/**
	 * BussinessFilterBlock--接口类型
	 * 返回系统初始数据的信息
     * 构造业务过滤新增页面类型列的下拉框值
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetFilterType(){
		EiBlock block = new EiBlock("cmes.cs.filtertype");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map; 
        _map = new HashMap<String, String>();
        _map.put("value", "部门");
        _list.add(_map);
        _map = new HashMap<String, String>();
        _map.put("value", "个人");
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	/**
	 * BussinessFilterBlock--构造业务过滤新增页面过滤级别的下拉框数据
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetLevel(){
		EiBlock block = new EiBlock("cmes.cs.level");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map; 
        _map = new HashMap<String, String>();
        _map.put("value", "系统");
        _list.add(_map);
        _map = new HashMap<String, String>();
        _map.put("value", "项目");
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	/**
	 * InitialDataBlock--数据类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetDataTypeBlock(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.dataType");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _list.add(_map);
        }
        _map = new HashMap<String, String>();
        _map.put("value", "标准版");
        _list.add(_map);
        _map = new HashMap<String, String>();
        _map.put("value", "项目版");
        _list.add(_map);
		block.setRows(_list);
		return block;
	} 
	/**
	 * InitialDataBlock--系统类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetTypeBlock(){
		EiBlock block = new EiBlock("cmes.cs.type");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
        _map = new HashMap<String, String>();
        _map.put("value", "系统");
        _list.add(_map);
        _map = new HashMap<String, String>();
        _map.put("value", "用户");
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	/**
	 * InitialDataBlock--系统类型，Combobox
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetRunTypeBlock(){
		EiBlock block = new EiBlock("cmes.cs.type");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map; 
        _map = new HashMap<String, String>();
        _map.put("value", "用户");
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	
	/**
	 * MineModelBlock--矿井状态
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetMineStatus(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.mineStatus");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _list.add(_map);
        }

        _map = new HashMap<String, String>();
        _map.put("value", "规划");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "在建");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "生产");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "停产");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}
	/**
	 * MineModelBlock--生产系统、生产单元、变量组、变量 ------使用状态
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetUseingStatus(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.useingStatus");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _list.add(_map);
        }

        _map = new HashMap<String, String>();
        _map.put("value", "在用");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "停用");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}
	/**
	 * MineModelBlock--变量存储周期
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetVariableCycle(){
		EiBlock block = new EiBlock("cmes.cs.variableCycle");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map; 

        _map = new HashMap<String, String>();
        _map.put("value", "300");
        _map.put("display", "5分钟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "600");
        _map.put("display", "10分钟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1800");
        _map.put("display", "30分钟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "3600");
        _map.put("display", "60分钟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "86400");
        _map.put("display", "24小时");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}
	/**
	 * MineModelBlock--变量是否
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock IsTrueOrFalse(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.trueOrFalse");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map; 
        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _map.put("display", "");
            _list.add(_map);
        }

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "是");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "否");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}
	/**
	 * MineModelBlock--变量类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetVariableType(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.variableType");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map; 
        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _map.put("display", "");
            _list.add(_map);
        }

        _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "开关量");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "模拟量");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "报警量");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "3");
        _map.put("display", "累计量");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}

	/**
	 * ProjectModelBlock--工程设计类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetProjectDesionType(){
		EiBlock block = new EiBlock("cmes.cs.projectDesionType");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "工作面");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "巷道");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "3");
        _map.put("display", "其他");
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	
	
	/**
	 * SystemModuleBlock--模块级别
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetModuleLevelBlock(){
		EiBlock block = new EiBlock("cmes.cs.modelLevel");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		_map = new HashMap<String, String>();
        _map.put("value", "系统模块");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "一级模块");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "二级模块");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "三级模块");
        _list.add(_map);  
        
		block.setRows(_list);
		return block;
	}
	/**
	 * SystemModuleBlock--模块类型
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetModuleTypeBlock(){
		EiBlock block = new EiBlock("cmes.cs.modelType");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		_map = new HashMap<String, String>();
        _map.put("value", "业务");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "公共");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "基础");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "报表");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "统计");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}
	/**
	 * SystemModuleBlock--模块性质
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetModuleNatureBlock(){
		EiBlock block = new EiBlock("cmes.cs.modelNature");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		_map = new HashMap<String, String>();
        _map.put("value", "标准版");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "扩展版");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "项目");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}
	/**
	 * SystemModuleBlock--模块级别
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetModuleLevels(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.modelLevel");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		_map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "系统模块");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "一级模块");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "二级模块");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "3");
        _map.put("display", "三级模块");
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	/**
	 * SystemModuleBlock--模块状态
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetStatus(boolean isAll){
		EiBlock block = new EiBlock("cmes.cs.modelStatus");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn); 
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _list.add(_map);
        }

        _map = new HashMap<String, String>();
        _map.put("value", "停用");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "在用");
        _list.add(_map);
        _list.add(_map);
		block.setRows(_list);
		return block;
	}
	
	/**
	 * WorkScheduleBlock--获得是否起始
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetIsStartBlock(){
		EiBlock block = new EiBlock("cmes.cs.isstart");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map;
		_map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "否");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "是");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}
	/**
	 * WorkScheduleBlock--获得班次分类
	 */
	@SuppressWarnings("rawtypes")
	public static EiBlock GetClassifyBlock(){
		EiBlock block = new EiBlock("cmes.cs.scheduleclassify");
		EiColumn EiColumn = new EiColumn("value");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		EiColumn = new EiColumn("display");
		EiColumn.setType("C");
		block.addMeta(EiColumn);
		List<Map> _list = new ArrayList<Map>();
		Map<String, String> _map; 
		_map = new HashMap<String, String>();
        _map.put("value", "三班制");
        _map.put("display", "三班制");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "四班制");
        _map.put("display", "四班制");
        _list.add(_map);
        
		block.setRows(_list);
		return block;
	}

	/**
    * SystemSettingBlock--- 系统基础设置
    * SystemSettingBlock--- 构造"系统模式"下拉菜单 0矿级模式 1分子公司 2集团公司
    *
	 */
    public static EiBlock GetSystemModel()
    {
        EiBlock block = new EiBlock("cmes.cs.systemModel");
        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);
        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "矿级模式");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "分子公司");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "集团公司");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 系统基础设置
    * SystemSettingBlock--- 构造"矿区形式"下拉菜单 0单矿区 1多矿区
    *
	 */
    public static EiBlock GetMiningType()
    {
        EiBlock block = new EiBlock("cmes.cs.mingingType");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "单矿区");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "多矿区");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 系统基础设置
    * SystemSettingBlock--- 构造"工程编号"、“工作面”、“巷道”下拉菜单 0自动 1手动 2生成
    *
	 */
    public static EiBlock GetEngineeringNo()
    {
        EiBlock block = new EiBlock("cmes.cs.engineeringNo");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "自动");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "手动");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "生成");
        _list.add(_map);

        block.setRows(_list);
        return block;
    } 
	/**
    * SystemSettingBlock--- 生产过程设置
    * SystemSettingBlock--- 构造"统计月计算方式"下拉菜单 0否 1是
    *
	 */
    public static EiBlock GetReportMonthMode()
    {
        EiBlock block = new EiBlock("cmes.cp.reportMonthMode");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "按下个月计算");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "按本月计算");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 生产过程设置
    * SystemSettingBlock--- 构造"自动获取数据"下拉菜单 0关 1开
    *
	 */
    public static EiBlock GetGetData()
    {
        EiBlock block = new EiBlock("cmes.cp.getData");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "关");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "开");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 生产过程设置
    * SystemSettingBlock--- 构造"掘进煤统计"下拉菜单 0否 1是
    *
	 */
    public static EiBlock GetCoalCount()
    {
        EiBlock block = new EiBlock("cmes.cp.coalCount");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "否");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "是");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 生产过程设置
    * SystemSettingBlock--- 构造"实际产量"下拉菜单 0验收量 1调度量 2汇报量 3实时量
    *
	 */
    public static EiBlock GetRealYield()
    {
        EiBlock block = new EiBlock("cmes.cp.realYield");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "验收量");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "调度量");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "汇报量");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "3");
        _map.put("display", "实时量");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 生产过程设置
    * SystemSettingBlock--- 构造"是否推算终止点"下拉菜单 0否 1是
    *
	 */
    public static EiBlock GetIsCalculateEnd()
    {
        EiBlock block = new EiBlock("cmes.cp.isCalculateEnd");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "否");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "是");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 生产过程设置
    * SystemSettingBlock--- 构造"采煤验收测量方式"下拉菜单 0长方形 1梯形
    *
	 */
    public static EiBlock GetMeasuringMethod()
    {
        EiBlock block = new EiBlock("cmes.cp.measuringMethod");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "长方形");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "梯形");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 生产过程设置
    * SystemSettingBlock--- 构造"采煤验收总量计算公式"下拉菜单 0采高*回采面积*煤层容量1.38 
    * SystemSettingBlock---                                  1(采高-矸石厚度)*回采面积*煤层容量1.38+矸石量
    *
	 */
    public static EiBlock GetMineValidateFormula()
    {
        EiBlock block = new EiBlock("cmes.cp.mineValidateFormula");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "采高*回采面积*煤层容量1.38");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "(采高-矸石厚度)*回采面积*煤层容量1.38+矸石量");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 生产过程设置
    * SystemSettingBlock--- 构造"矿井模型"下拉菜单 0矿井—水平—采区—采面 1矿井—采区—采面 2矿井—采区—采面
    *
	 */
    public static EiBlock GetMingModel()
    {
        EiBlock block = new EiBlock("cmes.cp.mingModel");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "矿井—水平—采区—采面");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "矿井—采区—采面");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "矿井—采面");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 生产文档设置
    * SystemSettingBlock--- 构造"编辑权限过滤"、"浏览权限过滤"、"目录操作权限"下拉菜单 0全部 1部门 2本人
    *
	 */
    public static EiBlock GetEditLimits()
    {
        EiBlock block = new EiBlock("cmes.cd.editLimits");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "全部");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "部门");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "本人");

        _list.add(_map);
        block.setRows(_list);
        return block;
    } 
	/**
    * SystemSettingBlock--- 材料使用设置
    * SystemSettingBlock--- 构造页面中下拉菜单（是否判断） 0否 1是
    *
	 */
    public static EiBlock GetIsCheck()
    {
        EiBlock block = new EiBlock("cmes.cm.ischeck");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "否");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "是");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 材料使用设置
    * SystemSettingBlock--- 构造"盘点单"、“领用申请单”、“入库单”、“出库单”下拉菜单 0自动 1手动 2生成
    *
	 */
    public static EiBlock GetCMSetting()
    {
        EiBlock block = new EiBlock("cmes.cm.cmsetting");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "自动");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "手动");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "生成");
        _list.add(_map);

        block.setRows(_list);
        return block;
    } 
	/**
    * SystemSettingBlock--- 设备维护设置
    * SystemSettingBlock--- 构造页面中下拉菜单（是否判断） 0否 1是
    *
	 */
    public static EiBlock GetIsIncludeClass()
    {
        EiBlock block = new EiBlock("cmes.ce.isIncludeClass");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "否");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "是");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
	/**
    * SystemSettingBlock--- 设备维护管理
    * SystemSettingBlock--- 构造设备分类的级别数2-6
    *
	 */
    public static EiBlock GetClassLevel()
    {
        EiBlock block = new EiBlock("cmes.ce.classLevel");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "2");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "3");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "4");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "5");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "6");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }	 
    
    
    /// <summary>
    /// 构造报表类型列的下拉框值
    /// </summary>
    public static EiBlock getReportType()
    {
        EiBlock block = new EiBlock("cmes.cp.reportType");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);
        EiColumn = new EiColumn("label");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("label", "日报");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("label", "月报");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 构造报表发布状态的的下拉框数据
    /// </summary>
    public static EiBlock getReportStauts()
    {
        EiBlock block = new EiBlock("cmes.cp.reportStatus");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "未发布");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "已发布");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 构造报表月份的下拉框数据
    /// </summary>
    public static EiBlock getReportMoth(boolean flag)
    {
        EiBlock block = new EiBlock("cmes.cp.reportMoth");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        if (flag == true)
        {
            _map.put("value", null);
            _list.add(_map);
        }
        _map = new HashMap<String, String>();
        _map.put("value", "1月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "3月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "4月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "5月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "6月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "7月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "8月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "9月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "10月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "11月");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "12月");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 构造报表年份的下拉框数据
    /// </summary>
    public static EiBlock getReportYear(boolean flag)
    {
        EiBlock block = new EiBlock("cmes.cp.reportYear");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        if (flag == true)
        {
            _map.put("value", null);
            _list.add(_map);
        }
        int thisYear=Integer.parseInt(StaticTools.getYear());
        _map = new HashMap<String, String>();
        _map.put("value", (thisYear - 2) + "年");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", (thisYear - 1) + "年");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", thisYear+"年");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", thisYear + "年");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", thisYear + "年");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
    /// <summary>
    /// 构造预警点类型的下拉框数据
    /// </summary>
    public static EiBlock getAlarmType()
    {
        EiBlock block = new EiBlock("cmes.cp.alarmType");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("unit");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "日期");
        _map.put("unit", "日期");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "进度");
        _map.put("unit", "米");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 构造预警开关的下拉框数据
    /// </summary>
    public static EiBlock getSwitch()
    {
        EiBlock block = new EiBlock("cmes.cp.switch");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "开");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "关");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
    /// <summary>
    /// 构造问题来源的下拉框数据
    /// </summary>
    public static EiBlock getProblemOrigin()
    {
        EiBlock block = new EiBlock("cmes.cp.problemOrigin");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "调度录入");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "班组汇报");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "领导提出");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 构造问题解决状态的下拉框数据
    /// </summary>
    public static EiBlock getProblemStatus()
    {
        EiBlock block = new EiBlock("cmes.cp.problemStatus");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "草拟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "未处理");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "2");
        _map.put("display", "未查收");
        _list.add(_map);
                
        _map = new HashMap<String, String>();
        _map.put("value", "3");
        _map.put("display", "未整改");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "4");
        _map.put("display", "未核查");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "5");
        _map.put("display", "关闭");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "6");
        _map.put("display", "作废");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 构造是否核查的下拉框数据
    /// </summary>
    public static EiBlock getIsCheck()
    {
        EiBlock block = new EiBlock("cmes.cp.isCheck");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "是");
        _map.put("display", "是");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "否");
        _map.put("display", "否");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
    /// <summary>
    /// 计划状态
    /// </summary>
    /// <returns></returns>
    public static EiBlock getPlanStatus(String blockName, boolean isAll)
    {
        EiBlock block = new EiBlock(blockName);

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);
        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = null;

        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _map.put("display", "");
            _list.add(_map);
        }

        _map = new HashMap<String, String>();
        _map.put("value", "草拟");
        _map.put("display", "草拟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "上报");
        _map.put("display", "上报");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "历史");
        _map.put("display", "历史");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 计划月份
    /// </summary>
    /// <returns></returns>
    public static EiBlock getPlanMonth(String blockName, boolean isAll)
    {
        EiBlock block = new EiBlock(blockName);

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = null;

        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _map.put("display", "");
            _list.add(_map);
        }

        for (int i = 0; i < 12; i++)
        {
            _map = new HashMap<String, String>();
            _map.put("value", i + 1 + "");
            _map.put("display", i + 1 + "");
            _list.add(_map);
        }
        
        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 计划类型
    /// </summary>
    /// <returns></returns>
    public static EiBlock getPlanType(String blockName, boolean isAll)
    {
        EiBlock block = new EiBlock(blockName);

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = null;

        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _map.put("display", "");
            _list.add(_map);
        }

        _map = new HashMap<String, String>(); 
        _map.put("value", "采煤计划");
        _map.put("display", "采煤计划");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "掘进计划");
        _map.put("display", "掘进计划");
        _list.add(_map);

         _map = new HashMap<String, String>();
         _map.put("value", "防突计划");
         _map.put("display", "防突计划");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "接替计划");
        _map.put("display", "接替计划");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "其他计划");
        _map.put("display", "其他计划");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
    /// <summary>
    /// 构造报表上报状态的的下拉框数据
    /// </summary>
    public static EiBlock getStauts()
    {
        EiBlock block = new EiBlock("cmes.cp.status");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "未上报");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "已上报");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 构造报表发布状态的的下拉框数据
    /// </summary>
    public static EiBlock getStauts2()
    {
        EiBlock block = new EiBlock("cmes.cp.status");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "未发布");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "已发布");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 构造报表生效状态的的下拉框数据
    /// </summary>
    public static EiBlock getStauts3()
    {
        EiBlock block = new EiBlock("cmes.cp.status");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "草拟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "生效");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
    /// <summary>
    /// 构造验收量类型的的下拉框数据
    /// </summary>
    public static EiBlock getDataType()
    {
        EiBlock block = new EiBlock("cmes.cp.dataType");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "阶段量");
        _map.put("display", "阶段量");
        _list.add(_map); 
        
        _map = new HashMap<String, String>();
        _map.put("value", "总量");
        _map.put("display", "总量");
        _list.add(_map);            

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 计划状态
    /// </summary>
    /// <returns></returns>
    public static EiBlock getPlan(String blockName, boolean isAll)
    {
        EiBlock block = new EiBlock(blockName);

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = null;

        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _map.put("display", "");
            _list.add(_map);
        }

        _map = new HashMap<String, String>();
        _map.put("value", "计划内");
        _map.put("display", "计划内");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "计划外");
        _map.put("display", "计划外");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 月份
    /// </summary>
    /// <returns></returns>
    public static EiBlock getMonth(String blockName, boolean isAll)
    {
        EiBlock block = new EiBlock(blockName);

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = null;

        if (isAll)
        {
            _map = new HashMap<String, String>();
            _map.put("value", "");
            _map.put("display", "");
            _list.add(_map);
        }

        for (int i = 0; i < 12; i++)
        {
            _map = new HashMap<String, String>();
            _map.put("value", i + 1 + "");
            _map.put("display", i + 1 + "");
            _list.add(_map);
        }

        block.setRows(_list);
        return block;
    }
    /// <summary>
    /// 构造班次状态的的下拉框数据
    /// </summary>
    public static EiBlock getWorkNumStatus()
    {
        EiBlock block = new EiBlock("cmes.cp.worknumStatus");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "班前");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "班中");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "班后");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
    
    /// <summary>
    /// 构造yesORno的的下拉框数据
    /// </summary>
    public static EiBlock getYesOrNo()
    {
        EiBlock block = new EiBlock("cmes.cp.yesOrNo");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "是");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "否");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
    
    /// <summary>
    /// 构造装渣方式的的下拉框数据
    /// </summary>
    public static EiBlock getZjType()
    {
        EiBlock block = new EiBlock("cmes.cp.zzType");

        EiColumn EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "机械");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
    /// <summary>
    /// 构造报表生效状态的的下拉框数据
    /// </summary>
    public static EiBlock getStauts4()
    {
        EiBlock block = new EiBlock("cmes.ch.status");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "草拟");
        _map.put("display", "草拟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "上报");
        _map.put("display", "上报");
        _list.add(_map);

        block.setRows(_list);
        return block;  
    }
    /// <summary>
    /// 构造文档类型block
    /// </summary>
    /// <returns></returns>
    public static EiBlock GetDocType()
    {
        EiBlock block = new EiBlock("cmes.cd.doctype");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "");
        _map.put("display", "");
        _list.add(_map);
            
        _map = new HashMap<String, String>();
        _map.put("value", "地质地测");
        _map.put("display", "地质地测");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "生产设计");
        _map.put("display", "生产设计");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "通风设计");
        _map.put("display", "通风设计");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "机电设计");
        _map.put("display", "机电设计");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "质量标准化");
        _map.put("display", "质量标准化");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "通知公告");
        _map.put("display", "通知公告");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "日常工作");
        _map.put("display", "日常工作");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "其它");
        _map.put("display", "其它");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }

    /// <summary>
    /// 构造业务类型block
    /// </summary>
    /// <returns></returns>
    public static EiBlock GetBusinessType()
    {
        EiBlock block = new EiBlock("cmes.cd.businesstype");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "");
        _map.put("display", "");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "采煤");
        _map.put("display", "采煤");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "掘进");
        _map.put("display", "掘进");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "机电");
        _map.put("display", "机电");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "运输");
        _map.put("display", "运输");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "通风");
        _map.put("display", "通风");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "安全");
        _map.put("display", "安全");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "其它");
        _map.put("display", "其它");
        _list.add(_map);

        block.setRows(_list);
        return block;
    }
  /// <summary>
    /// 构造权限block
    /// </summary>
    /// <returns></returns>
    public static EiBlock GetLimit()
    {
        EiBlock block = new EiBlock("cmes.cd.limit");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "0");
        _map.put("display", "查看权限");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "1");
        _map.put("display", "编辑权限");
        _list.add(_map);
        
        block.setRows(_list);
        return block;
    }
    
    /// <summary>
    /// 构造停产撤人状态下拉框数据
    /// </summary>
    public static EiBlock getStauts5()
    {
        EiBlock block = new EiBlock("cmes.ck.status");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "草拟");
        _map.put("display", "草拟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "上报");
        _map.put("display", "上报");
        _list.add(_map);
        
        _map = new HashMap<String, String>();
        _map.put("value", "关闭");
        _map.put("display", "关闭");
        _list.add(_map);

        block.setRows(_list);
        return block;  
    }
    
    /// <summary>
    /// 煤样编码管理状态
    /// </summary>
    public static EiBlock getStauts6()
    {
        EiBlock block = new EiBlock("cmes.cn.status");

        EiColumn EiColumn = new EiColumn("display");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        EiColumn = new EiColumn("value");
        EiColumn.setType("C");
        block.addMeta(EiColumn);

        List<Map> _list = new ArrayList<Map>();
        Map<String, String> _map = new HashMap<String, String>();
        _map.put("value", "草拟");
        _map.put("display", "草拟");
        _list.add(_map);

        _map = new HashMap<String, String>();
        _map.put("value", "生效");
        _map.put("display", "生效");
        _list.add(_map);

        block.setRows(_list);
        return block;  
    }
}
